package com.ourteam.product.ui.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:15 Warning ! This file will be overwrite when
 * regenerate !
 */
public class ProductUIPageDAOQueryBean extends BaseQueryBean {

  public ProductUIPageDAOQueryBean() {
    super();
  }

  public ProductUIPageDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public ProductUIPageDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.Id, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.Id, "id");
    }
  }

  public void addDomainIdSelectProperty() {
    addDomainIdSelectProperty("domainId");
  }

  public void addDomainIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.DomainId, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.DomainId, "domainId");
    }
  }

  public void addPageTemplateIdSelectProperty() {
    addPageTemplateIdSelectProperty("pageTemplateId");
  }

  public void addPageTemplateIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.PageTemplateId, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.PageTemplateId, "pageTemplateId");
    }
  }

  public void addPageCodeSelectProperty() {
    addPageCodeSelectProperty("pageCode");
  }

  public void addPageCodeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.PageCode, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.PageCode, "pageCode");
    }
  }

  public void addPageNameSelectProperty() {
    addPageNameSelectProperty("pageName");
  }

  public void addPageNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.PageName, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.PageName, "pageName");
    }
  }

  public void addStatusSelectProperty() {
    addStatusSelectProperty("status");
  }

  public void addStatusSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.Status, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.Status, "status");
    }
  }

  public void addRemarksSelectProperty() {
    addRemarksSelectProperty("remarks");
  }

  public void addRemarksSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.Remarks, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.Remarks, "remarks");
    }
  }

  public void addDomainCodeSelectProperty() {
    addDomainCodeSelectProperty("domainCode");
  }

  public void addDomainCodeSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.DomainCode, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.DomainCode, "domainCode");
    }
  }

  public void addDomainNameSelectProperty() {
    addDomainNameSelectProperty("domainName");
  }

  public void addDomainNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.DomainName, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.DomainName, "domainName");
    }
  }

  public void addTemplateNameSelectProperty() {
    addTemplateNameSelectProperty("templateName");
  }

  public void addTemplateNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIPageDAO.TemplateName, aAlias);
    } else {
      addSelectProperty(IProductUIPageDAO.TemplateName, "templateName");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addDomainIdSelectProperty();

    addPageTemplateIdSelectProperty();

    addPageCodeSelectProperty();

    addPageNameSelectProperty();

    addStatusSelectProperty();

    addRemarksSelectProperty();

    addDomainCodeSelectProperty();

    addDomainNameSelectProperty();

    addTemplateNameSelectProperty();
  }

  public static class Criteria extends BaseWhereCriterion<ProductUIPageDAOQueryBean> {

    protected Criteria(ProductUIPageDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IProductUIPageDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IProductUIPageDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(IProductUIPageDAO.Id + " is not null AND " + IProductUIPageDAO.Id + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion("(" + IProductUIPageDAO.Id + " is null OR " + IProductUIPageDAO.Id + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIPageDAO.Id + " is null OR " + IProductUIPageDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(IProductUIPageDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIPageDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(IProductUIPageDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIPageDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andDomainIdIsNull() {
      addCriterion(IProductUIPageDAO.DomainId + " is null");
      return this;
    }

    public Criteria andDomainIdIsNotNull() {
      addCriterion(IProductUIPageDAO.DomainId + " is not null");
      return this;
    }

    public Criteria andDomainIdIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.DomainId + " is not null AND " + IProductUIPageDAO.DomainId + " <> ''");
      return this;
    }

    public Criteria andDomainIdIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.DomainId
              + " is null OR "
              + IProductUIPageDAO.DomainId
              + " = '')");
      return this;
    }

    public Criteria andDomainIdEqualTo(long value) {
      return andDomainIdEqualTo(Long.valueOf(value));
    }

    public Criteria andDomainIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " = ", value, "domainId");
      return this;
    }

    public Criteria andDomainIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdNotEqualTo(long value) {
      return andDomainIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andDomainIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " <>", value, "domainId");
      return this;
    }

    public Criteria andDomainIdNotEqualToOrIsNull(long value) {
      return andDomainIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andDomainIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIPageDAO.DomainId + " is null OR " + IProductUIPageDAO.DomainId + " <>",
          value,
          "domainId");
      return this;
    }

    public Criteria andDomainIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdGreaterThan(long value) {
      return andDomainIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andDomainIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " >", value, "domainId");
      return this;
    }

    public Criteria andDomainIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdGreaterThanOrEqualTo(long value) {
      return andDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andDomainIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " >=", value, "domainId");
      return this;
    }

    public Criteria andDomainIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdLessThan(long value) {
      return andDomainIdLessThan(Long.valueOf(value));
    }

    public Criteria andDomainIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " <", value, "domainId");
      return this;
    }

    public Criteria andDomainIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdLessThanOrEqualTo(long value) {
      return andDomainIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andDomainIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.DomainId + " <=", value, "domainId");
      return this;
    }

    public Criteria andDomainIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdIn(long[] values) {
      if (values.length == 1) {
        return andDomainIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " in", values, "domainId");
        return this;
      }
    }

    public Criteria andDomainIdNotIn(long[] values) {
      if (values.length == 1) {
        return andDomainIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " not in", values, "domainId");
        return this;
      }
    }

    public Criteria andDomainIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andDomainIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " in", values, "domainId");
        return this;
      }
    }

    public Criteria andDomainIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andDomainIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " not in", values, "domainId");
        return this;
      }
    }

    public Criteria andDomainIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andDomainIdEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " in", Arrays.asList(values), "domainId");
        return this;
      }
    }

    public Criteria andDomainIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andDomainIdNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainId + " not in", Arrays.asList(values), "domainId");
        return this;
      }
    }

    public Criteria andDomainIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainIdBetween(long value1, long value2) {
      addCriterion(IProductUIPageDAO.DomainId + " between", value1, value2, "domainId");
      return this;
    }

    public Criteria andDomainIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIPageDAO.DomainId + " between", value1, value2, "domainId");
      return this;
    }

    public Criteria andDomainIdNotBetween(long value1, long value2) {
      addCriterion(IProductUIPageDAO.DomainId + " not between", value1, value2, "domainId");
      return this;
    }

    public Criteria andDomainIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIPageDAO.DomainId + " not between", value1, value2, "domainId");
      return this;
    }

    public Criteria andPageTemplateIdIsNull() {
      addCriterion(IProductUIPageDAO.PageTemplateId + " is null");
      return this;
    }

    public Criteria andPageTemplateIdIsNotNull() {
      addCriterion(IProductUIPageDAO.PageTemplateId + " is not null");
      return this;
    }

    public Criteria andPageTemplateIdIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.PageTemplateId
              + " is not null AND "
              + IProductUIPageDAO.PageTemplateId
              + " <> ''");
      return this;
    }

    public Criteria andPageTemplateIdIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.PageTemplateId
              + " is null OR "
              + IProductUIPageDAO.PageTemplateId
              + " = '')");
      return this;
    }

    public Criteria andPageTemplateIdEqualTo(long value) {
      return andPageTemplateIdEqualTo(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " = ", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdNotEqualTo(long value) {
      return andPageTemplateIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " <>", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdNotEqualToOrIsNull(long value) {
      return andPageTemplateIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIPageDAO.PageTemplateId
              + " is null OR "
              + IProductUIPageDAO.PageTemplateId
              + " <>",
          value,
          "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdGreaterThan(long value) {
      return andPageTemplateIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " >", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdGreaterThanOrEqualTo(long value) {
      return andPageTemplateIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " >=", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdLessThan(long value) {
      return andPageTemplateIdLessThan(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " <", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdLessThanOrEqualTo(long value) {
      return andPageTemplateIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andPageTemplateIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIPageDAO.PageTemplateId + " <=", value, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageTemplateId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageTemplateIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdIn(long[] values) {
      if (values.length == 1) {
        return andPageTemplateIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageTemplateId + " in", values, "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdNotIn(long[] values) {
      if (values.length == 1) {
        return andPageTemplateIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageTemplateId + " not in", values, "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andPageTemplateIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageTemplateId + " in", values, "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andPageTemplateIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageTemplateId + " not in", values, "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andPageTemplateIdEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIPageDAO.PageTemplateId + " in", Arrays.asList(values), "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andPageTemplateIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIPageDAO.PageTemplateId + " not in", Arrays.asList(values), "pageTemplateId");
        return this;
      }
    }

    public Criteria andPageTemplateIdIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageTemplateIdBetween(long value1, long value2) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " between", value1, value2, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIPageDAO.PageTemplateId + " between", value1, value2, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdNotBetween(long value1, long value2) {
      addCriterion(
          IProductUIPageDAO.PageTemplateId + " not between", value1, value2, "pageTemplateId");
      return this;
    }

    public Criteria andPageTemplateIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IProductUIPageDAO.PageTemplateId + " not between", value1, value2, "pageTemplateId");
      return this;
    }

    public Criteria andPageCodeIsNull() {
      addCriterion(IProductUIPageDAO.PageCode + " is null");
      return this;
    }

    public Criteria andPageCodeIsNotNull() {
      addCriterion(IProductUIPageDAO.PageCode + " is not null");
      return this;
    }

    public Criteria andPageCodeIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.PageCode + " is not null AND " + IProductUIPageDAO.PageCode + " <> ''");
      return this;
    }

    public Criteria andPageCodeIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.PageCode
              + " is null OR "
              + IProductUIPageDAO.PageCode
              + " = '')");
      return this;
    }

    public Criteria andPageCodeEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " = ", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " <>", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.PageCode + " is null OR " + IProductUIPageDAO.PageCode + " <>",
          value,
          "pageCode");
      return this;
    }

    public Criteria andPageCodeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " >", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " >=", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLessThan(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " <", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageCode + " <=", value, "pageCode");
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageCode);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageCodeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.PageCode + " like", buffer.toString(), "pageCode");
      return this;
    }

    public Criteria andPageCodeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.PageCode + " not like", buffer.toString(), "pageCode");
      return this;
    }

    public Criteria andPageCodeIn(List<String> values) {

      if (values.size() == 1) {
        return andPageCodeEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageCode + " in", values, "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andPageCodeNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageCode + " not in", values, "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeIn(String[] values) {

      if (values.length == 1) {
        return andPageCodeEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageCode + " in", Arrays.asList(values), "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeNotIn(String[] values) {
      if (values.length == 1) {
        return andPageCodeNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageCode + " not in", Arrays.asList(values), "pageCode");
        return this;
      }
    }

    public Criteria andPageCodeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageCode + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageCodeBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.PageCode + " between", value1, value2, "pageCode");
      return this;
    }

    public Criteria andPageCodeNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.PageCode + " not between", value1, value2, "pageCode");
      return this;
    }

    public Criteria andPageNameIsNull() {
      addCriterion(IProductUIPageDAO.PageName + " is null");
      return this;
    }

    public Criteria andPageNameIsNotNull() {
      addCriterion(IProductUIPageDAO.PageName + " is not null");
      return this;
    }

    public Criteria andPageNameIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.PageName + " is not null AND " + IProductUIPageDAO.PageName + " <> ''");
      return this;
    }

    public Criteria andPageNameIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.PageName
              + " is null OR "
              + IProductUIPageDAO.PageName
              + " = '')");
      return this;
    }

    public Criteria andPageNameEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageName + " = ", value, "pageName");
      return this;
    }

    public Criteria andPageNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageName + " <>", value, "pageName");
      return this;
    }

    public Criteria andPageNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.PageName + " is null OR " + IProductUIPageDAO.PageName + " <>",
          value,
          "pageName");
      return this;
    }

    public Criteria andPageNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.PageName + " >", value, "pageName");
      return this;
    }

    public Criteria andPageNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageName + " >=", value, "pageName");
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLessThan(String value) {

      addCriterion(IProductUIPageDAO.PageName + " <", value, "pageName");
      return this;
    }

    public Criteria andPageNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.PageName + " <=", value, "pageName");
      return this;
    }

    public Criteria andPageNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.PageName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andPageNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.PageName + " like", buffer.toString(), "pageName");
      return this;
    }

    public Criteria andPageNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.PageName + " not like", buffer.toString(), "pageName");
      return this;
    }

    public Criteria andPageNameIn(List<String> values) {

      if (values.size() == 1) {
        return andPageNameEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageName + " in", values, "pageName");
        return this;
      }
    }

    public Criteria andPageNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andPageNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.PageName + " not in", values, "pageName");
        return this;
      }
    }

    public Criteria andPageNameIn(String[] values) {

      if (values.length == 1) {
        return andPageNameEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageName + " in", Arrays.asList(values), "pageName");
        return this;
      }
    }

    public Criteria andPageNameNotIn(String[] values) {
      if (values.length == 1) {
        return andPageNameNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.PageName + " not in", Arrays.asList(values), "pageName");
        return this;
      }
    }

    public Criteria andPageNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.PageName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andPageNameBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.PageName + " between", value1, value2, "pageName");
      return this;
    }

    public Criteria andPageNameNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.PageName + " not between", value1, value2, "pageName");
      return this;
    }

    public Criteria andStatusIsNull() {
      addCriterion(IProductUIPageDAO.Status + " is null");
      return this;
    }

    public Criteria andStatusIsNotNull() {
      addCriterion(IProductUIPageDAO.Status + " is not null");
      return this;
    }

    public Criteria andStatusIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.Status + " is not null AND " + IProductUIPageDAO.Status + " <> ''");
      return this;
    }

    public Criteria andStatusIsEmpty() {
      addCriterion(
          "(" + IProductUIPageDAO.Status + " is null OR " + IProductUIPageDAO.Status + " = '')");
      return this;
    }

    public Criteria andStatusEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Status + " = ", value, "status");
      return this;
    }

    public Criteria andStatusEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Status + " <>", value, "status");
      return this;
    }

    public Criteria andStatusNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.Status + " is null OR " + IProductUIPageDAO.Status + " <>",
          value,
          "status");
      return this;
    }

    public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.Status + " >", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Status + " >=", value, "status");
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThan(String value) {

      addCriterion(IProductUIPageDAO.Status + " <", value, "status");
      return this;
    }

    public Criteria andStatusLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Status + " <=", value, "status");
      return this;
    }

    public Criteria andStatusLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Status);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andStatusLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.Status + " like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.Status + " not like", buffer.toString(), "status");
      return this;
    }

    public Criteria andStatusIn(List<String> values) {

      if (values.size() == 1) {
        return andStatusEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Status + " in", values, "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(List<String> values) {
      if (values.size() == 1) {
        return andStatusNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Status + " not in", values, "status");
        return this;
      }
    }

    public Criteria andStatusIn(String[] values) {

      if (values.length == 1) {
        return andStatusEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Status + " in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusNotIn(String[] values) {
      if (values.length == 1) {
        return andStatusNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Status + " not in", Arrays.asList(values), "status");
        return this;
      }
    }

    public Criteria andStatusIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Status + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andStatusBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.Status + " between", value1, value2, "status");
      return this;
    }

    public Criteria andStatusNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.Status + " not between", value1, value2, "status");
      return this;
    }

    public Criteria andRemarksIsNull() {
      addCriterion(IProductUIPageDAO.Remarks + " is null");
      return this;
    }

    public Criteria andRemarksIsNotNull() {
      addCriterion(IProductUIPageDAO.Remarks + " is not null");
      return this;
    }

    public Criteria andRemarksIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.Remarks + " is not null AND " + IProductUIPageDAO.Remarks + " <> ''");
      return this;
    }

    public Criteria andRemarksIsEmpty() {
      addCriterion(
          "(" + IProductUIPageDAO.Remarks + " is null OR " + IProductUIPageDAO.Remarks + " = '')");
      return this;
    }

    public Criteria andRemarksEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " = ", value, "remarks");
      return this;
    }

    public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " <>", value, "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.Remarks + " is null OR " + IProductUIPageDAO.Remarks + " <>",
          value,
          "remarks");
      return this;
    }

    public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " >", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " >=", value, "remarks");
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThan(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " <", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.Remarks + " <=", value, "remarks");
      return this;
    }

    public Criteria andRemarksLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.Remarks);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andRemarksLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.Remarks + " like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.Remarks + " not like", buffer.toString(), "remarks");
      return this;
    }

    public Criteria andRemarksIn(List<String> values) {

      if (values.size() == 1) {
        return andRemarksEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Remarks + " in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(List<String> values) {
      if (values.size() == 1) {
        return andRemarksNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.Remarks + " not in", values, "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(String[] values) {

      if (values.length == 1) {
        return andRemarksEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Remarks + " in", Arrays.asList(values), "remarks");
        return this;
      }
    }

    public Criteria andRemarksNotIn(String[] values) {
      if (values.length == 1) {
        return andRemarksNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.Remarks + " not in", Arrays.asList(values), "remarks");
        return this;
      }
    }

    public Criteria andRemarksIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.Remarks + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andRemarksBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.Remarks + " between", value1, value2, "remarks");
      return this;
    }

    public Criteria andRemarksNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.Remarks + " not between", value1, value2, "remarks");
      return this;
    }

    public Criteria andDomainCodeIsNull() {
      addCriterion(IProductUIPageDAO.DomainCode + " is null");
      return this;
    }

    public Criteria andDomainCodeIsNotNull() {
      addCriterion(IProductUIPageDAO.DomainCode + " is not null");
      return this;
    }

    public Criteria andDomainCodeIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.DomainCode
              + " is not null AND "
              + IProductUIPageDAO.DomainCode
              + " <> ''");
      return this;
    }

    public Criteria andDomainCodeIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.DomainCode
              + " is null OR "
              + IProductUIPageDAO.DomainCode
              + " = '')");
      return this;
    }

    public Criteria andDomainCodeEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " = ", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " <>", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.DomainCode + " is null OR " + IProductUIPageDAO.DomainCode + " <>",
          value,
          "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " >", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " >=", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLessThan(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " <", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainCode + " <=", value, "domainCode");
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainCode);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainCodeLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.DomainCode + " like", buffer.toString(), "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.DomainCode + " not like", buffer.toString(), "domainCode");
      return this;
    }

    public Criteria andDomainCodeIn(List<String> values) {

      if (values.size() == 1) {
        return andDomainCodeEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainCode + " in", values, "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDomainCodeNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainCode + " not in", values, "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeIn(String[] values) {

      if (values.length == 1) {
        return andDomainCodeEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainCode + " in", Arrays.asList(values), "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeNotIn(String[] values) {
      if (values.length == 1) {
        return andDomainCodeNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainCode + " not in", Arrays.asList(values), "domainCode");
        return this;
      }
    }

    public Criteria andDomainCodeIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainCode + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainCodeBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.DomainCode + " between", value1, value2, "domainCode");
      return this;
    }

    public Criteria andDomainCodeNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.DomainCode + " not between", value1, value2, "domainCode");
      return this;
    }

    public Criteria andDomainNameIsNull() {
      addCriterion(IProductUIPageDAO.DomainName + " is null");
      return this;
    }

    public Criteria andDomainNameIsNotNull() {
      addCriterion(IProductUIPageDAO.DomainName + " is not null");
      return this;
    }

    public Criteria andDomainNameIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.DomainName
              + " is not null AND "
              + IProductUIPageDAO.DomainName
              + " <> ''");
      return this;
    }

    public Criteria andDomainNameIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.DomainName
              + " is null OR "
              + IProductUIPageDAO.DomainName
              + " = '')");
      return this;
    }

    public Criteria andDomainNameEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " = ", value, "domainName");
      return this;
    }

    public Criteria andDomainNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " <>", value, "domainName");
      return this;
    }

    public Criteria andDomainNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.DomainName + " is null OR " + IProductUIPageDAO.DomainName + " <>",
          value,
          "domainName");
      return this;
    }

    public Criteria andDomainNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " >", value, "domainName");
      return this;
    }

    public Criteria andDomainNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " >=", value, "domainName");
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLessThan(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " <", value, "domainName");
      return this;
    }

    public Criteria andDomainNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.DomainName + " <=", value, "domainName");
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.DomainName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andDomainNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.DomainName + " like", buffer.toString(), "domainName");
      return this;
    }

    public Criteria andDomainNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.DomainName + " not like", buffer.toString(), "domainName");
      return this;
    }

    public Criteria andDomainNameIn(List<String> values) {

      if (values.size() == 1) {
        return andDomainNameEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainName + " in", values, "domainName");
        return this;
      }
    }

    public Criteria andDomainNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andDomainNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.DomainName + " not in", values, "domainName");
        return this;
      }
    }

    public Criteria andDomainNameIn(String[] values) {

      if (values.length == 1) {
        return andDomainNameEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainName + " in", Arrays.asList(values), "domainName");
        return this;
      }
    }

    public Criteria andDomainNameNotIn(String[] values) {
      if (values.length == 1) {
        return andDomainNameNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.DomainName + " not in", Arrays.asList(values), "domainName");
        return this;
      }
    }

    public Criteria andDomainNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.DomainName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andDomainNameBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.DomainName + " between", value1, value2, "domainName");
      return this;
    }

    public Criteria andDomainNameNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.DomainName + " not between", value1, value2, "domainName");
      return this;
    }

    public Criteria andTemplateNameIsNull() {
      addCriterion(IProductUIPageDAO.TemplateName + " is null");
      return this;
    }

    public Criteria andTemplateNameIsNotNull() {
      addCriterion(IProductUIPageDAO.TemplateName + " is not null");
      return this;
    }

    public Criteria andTemplateNameIsNotEmpty() {
      addCriterion(
          IProductUIPageDAO.TemplateName
              + " is not null AND "
              + IProductUIPageDAO.TemplateName
              + " <> ''");
      return this;
    }

    public Criteria andTemplateNameIsEmpty() {
      addCriterion(
          "("
              + IProductUIPageDAO.TemplateName
              + " is null OR "
              + IProductUIPageDAO.TemplateName
              + " = '')");
      return this;
    }

    public Criteria andTemplateNameEqualTo(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " = ", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameNotEqualTo(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " <>", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIPageDAO.TemplateName + " is null OR " + IProductUIPageDAO.TemplateName + " <>",
          value,
          "templateName");
      return this;
    }

    public Criteria andTemplateNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameGreaterThan(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " >", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " >=", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameLessThan(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " <", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameLessThanOrEqualTo(String value) {

      addCriterion(IProductUIPageDAO.TemplateName + " <=", value, "templateName");
      return this;
    }

    public Criteria andTemplateNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIPageDAO.TemplateName);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andTemplateNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.TemplateName + " like", buffer.toString(), "templateName");
      return this;
    }

    public Criteria andTemplateNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIPageDAO.TemplateName + " not like", buffer.toString(), "templateName");
      return this;
    }

    public Criteria andTemplateNameIn(List<String> values) {

      if (values.size() == 1) {
        return andTemplateNameEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.TemplateName + " in", values, "templateName");
        return this;
      }
    }

    public Criteria andTemplateNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andTemplateNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIPageDAO.TemplateName + " not in", values, "templateName");
        return this;
      }
    }

    public Criteria andTemplateNameIn(String[] values) {

      if (values.length == 1) {
        return andTemplateNameEqualTo(values[0]);
      } else {
        addCriterion(IProductUIPageDAO.TemplateName + " in", Arrays.asList(values), "templateName");
        return this;
      }
    }

    public Criteria andTemplateNameNotIn(String[] values) {
      if (values.length == 1) {
        return andTemplateNameNotEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIPageDAO.TemplateName + " not in", Arrays.asList(values), "templateName");
        return this;
      }
    }

    public Criteria andTemplateNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIPageDAO.TemplateName + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andTemplateNameBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.TemplateName + " between", value1, value2, "templateName");
      return this;
    }

    public Criteria andTemplateNameNotBetween(String value1, String value2) {
      addCriterion(IProductUIPageDAO.TemplateName + " not between", value1, value2, "templateName");
      return this;
    }
  }
}
